

<?php
include "admin/lib/config.inc.php";
$combo1 = '1';
$combo1 = $_GET['categoria'];
$sql = "SELECT * FROM `subcategorias` WHERE `subcategorias`.`categoria_id` LIKE $combo1";
$result = mysql_query($sql);
//echo $sql;
?>

<option value='selecione'>Selecione a Categoria</option>
<?php
while($row = mysql_fetch_array($result)){
	$subcategoria_id= $row['id_subcategoria'];
	$nome = $row['nome_subcategoria'];

	?>
	<option value="<?php echo $subcategoria_id; ?>"><?php echo $nome; ?> </option>
	<?php 
	}	
?>
